package com.vdf.sisconsolid.persistencemodule.converter;

import java.util.ArrayList;
import java.util.List;

import com.vdf.sisconsolid.persistencemodule.dto.KeyValueBean;
import com.vdf.sisconsolid.persistencemodule.model.Net;

public class NetConverter {

	public static List<KeyValueBean> toNetKeyValue(List<Net> netList) {
		List<KeyValueBean> netBeanList = new ArrayList<KeyValueBean>();
		for (Net net : netList) {
			KeyValueBean pBean = new KeyValueBean();
			pBean.setKey(net.getId());
			pBean.setValue(net.getName());

			netBeanList.add(pBean);
		}
		return netBeanList;
	}

}
